From: kfraser@localhost.localdomain Date: Thu, 26 Oct 2006 10:50:17 +0000 (+0100) Subject: [NET] back: Advertise that we do not support rx-flip path any more. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~199 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=98c075c8048f38f570c7058ded8eb68f36ef2816;p=xen.git [NET] back: Advertise that we do not support rx-flip path any more. This will now be used only by older guests who do not understand the feature-rx-{copy,flip} feature flags. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c index b81042d701..7d301965f4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c @@ -93,10 +93,22 @@ static int netback_probe(struct xenbus_device *dev, goto abort_transaction; } + /* We support rx-copy path. */ err = xenbus_printf(xbt, dev->nodename, "feature-rx-copy", "%d", 1); if (err) { - message = "writing feature-copying"; + message = "writing feature-rx-copy"; + goto abort_transaction; + } + + /* + * We don't support rx-flip path (except old guests who don't + * grok this feature flag). + */ + err = xenbus_printf(xbt, dev->nodename, + "feature-rx-flip", "%d", 0); + if (err) { + message = "writing feature-rx-flip"; goto abort_transaction; }